package com.report.enumeration;

public enum EnterpriseTypeEnum {

    SOE(0, "国企"),
    PLC(1, "上市企业");


    private int code;

    private String desc;

    private EnterpriseTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static EnterpriseTypeEnum getByCode(int code) {
        for (EnterpriseTypeEnum value : values()) {
            if (value.code == code) {
                return value;
            }
        }
        return null;
    }
}
